import { useState } from 'react'
// import reactLogo from './assets/react.svg'
// import viteLogo from '/vite.svg'
// import './App.css'
import { useRoutes, Link } from 'react-router-dom';
import router from './router'
function App() {
  const [count, setCount] = useState(0)
  // 用一个变量声明 
  // 路由对象
  const outlet = useRoutes(router)
  return (
      <div className='App'>
        {/* 占位符组件 相当于vue中的route-view */}
        {/* <Outlet></Outlet> */}
        {outlet}
      </div>
  )
}

export default App
